/**
 * com.monte.test.model.MessContent.java
 * create by FengMy from 2013
 */
package com.monte.test.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monte.entity.CoreEntity;

/**
 * @描述:
 * @author FengMy
 */
@Entity(name="T_TE_MESSCONTENT")
public class MessContent extends CoreEntity {
	private static final long serialVersionUID = 1683322079824070513L;
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.EAGER)
	@JoinColumn(name="FKMESSID")
	private Mess mess;
	
	@Column(name="FNAME",length=80)
	private String name;
	
	@Column(name="FNUMBER",length=80)
	private String number;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public void setMess(Mess mess) {
		this.mess = mess;
	}

	public Mess getMess() {
		return mess;
	}
}
